<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td colspan="2"><table class="tabel" width="50%">
           <tr>
			<th scope="col">Kode</th>
             <th scope="col">Diagnosis</th>
             
           </tr>
			<tbody id="tbody_list_diagnosis">
			<?php
			$sql_diagnosis="select a.id_klaim,a.icd10 as id_diagnosis, b.nama as nama_diagnosis from klaim_diagnosis a inner join master_diagnosis b on a.icd10=b.icd10
					 where a.id_klaim='".$id_klaim."'";
				// $sql_diagnosis;
			$qry_diagnosis=mysql_query($sql_diagnosis);
			$num_diagnosis=mysql_num_rows($qry_diagnosis);
			//echo 'num hasil '.$num_diagnosis;
			$no=1;
			if(!empty($id_klaim)&& $num_diagnosis>0){
				while($hasil_diagnosis=mysql_fetch_array($qry_diagnosis)){
			?>
			<tr>
			<td><?php echo $hasil_diagnosis['id_diagnosis']; ?></td>
			<td><?php echo $hasil_diagnosis['nama_diagnosis']; ?></td>
			
			</tr>
			<?php 
			}
			}
			?>
		   </tbody>
</table></td>
  </tr>

</table>

